From 2ef3b0144281433dc05b4ac05a4f87ba65482a61 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 7 Jan 2016 12:21:25 +0100 Subject: [PATCH] notebook: No need to recompute remaining space The value is correct. In particular, subtracting width on notebooks with tabs on left/right is a very bad idea. --- gtk/gtknotebook.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 89f9a3c375..13592d11ca 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -5525,7 +5525,6 @@ gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook, *last_child = gtk_notebook_search_page (notebook, priv->focus_tab, STEP_NEXT, TRUE); page = priv->first_tab->data; - *remaining_space = tab_space - page->requisition.width; *n = 1; } else -- 2.30.2